package com.jaiai.work.project.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jaiai.work.project.entity.TEntity;
import com.jaiai.work.project.mapper.TEntityMapper;
import com.jaiai.work.project.service.ITEntityService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 实体表 服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2018-04-19
 */
@Service
public class TEntityServiceImpl extends ServiceImpl<TEntityMapper, TEntity> implements ITEntityService {

    @Override
    public Page<List<Map<String,Object>>> findTEntityAll(Page page){
        page.setRecords(baseMapper.findTEntityAll(page));
        return page;
    }
}
